//
// Created by Ctzzz on 2024/4/28.
//

#ifndef NDKDEMO_TEXTUREMAPSAMPLE_H
#define NDKDEMO_TEXTUREMAPSAMPLE_H


#include "GLSampleBase.h"

class TextureMapSample : public GLSampleBase {
public:
    TextureMapSample();

    ~TextureMapSample();

    virtual void LoadImage(NativeImage *pImage);

    virtual void Init();

    virtual void Draw();

private:
    // 创建纹理
    void CreateTexture();
    // 删除纹理
    void DeleteTexture();

    // 用于存储纹理 ID
    GLuint m_TextureId;
    // 用于存储纹理采样器的位置
    GLint m_SamplerLoc;
    // 用于存储纹理图像的信息
    NativeImage m_RenderImage;
};


#endif //NDKDEMO_TEXTUREMAPSAMPLE_H
